package entity

type AiQuestion struct {
	Id              int64  `gorm:"column:id;primary_key" json:"id"`
	Topic           string `gorm:"column:topic;type:varchar(255);not null" json:"topic"`
	Content         string `gorm:"column:content;type:varchar(255);not null" json:"content"`
	Level           int    `gorm:"column:level;type:integer;not null" json:"level"`
	Module          int    `gorm:"column:module;type:integer;not null" json:"module"`
	ReferenceAnswer string `gorm:"column:reference_answer;type:varchar(2048);not null" json:"reference_answer"`
	Weight          int    `gorm:"column:weight;type:integer;not null" json:"weight"`
	Background      string `gorm:"column:background;type:varchar(1024);not null" json:"background"`
	GuideAnswer     string `gorm:"column:guide_answer;type:varchar(1024);not null" json:"guide_answer"`
	GuideWords      string `gorm:"column:guide_words;type:varchar(1024);not null" json:"guide_words"`
	Questioner      string `gorm:"column:questioner;type:varchar(64);not null" json:"questioner"`
	//QuestionerId    int64  `gorm:"column:questioner_id；type:bigint;" json:"questioner_id"`
	CreatedAt         int64   `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt         int64   `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
	Issue             int     `gorm:"column:issue;type:integer;not null" json:"issue"`
	ProductId         int64   `gorm:"column:product_id;type:integer;not null" json:"product_id"`
	Heat              int     `gorm:"column:heat;type:integer;not null" json:"heat"`
	RecommendStrength int     `gorm:"column:recommend_strength;type:integer;not null" json:"recommend_strength"`
	Image             string  `gorm:"column:image;type:varchar(255);not null" json:"image"`
	Tag               string  `gorm:"column:tag;type:varchar(16);not null" json:"tag"`
	CourseType        int     `gorm:"column:course_type;type:integer;not null" json:"course_type"`
	CollectorId       int64   `gorm:"column:collector_id;type:bigint;not null" json:"collector_id"`
	Price             float64 `gorm:"column:price;type:decimal(10,2);not null" json:"price"`
	Stock             int     `gorm:"column:stock;type:integer;not null" json:"stock"`
	UpDown            int     `gorm:"column:up_down;type:integer;not null" json:"up_down"`
}

func (a *AiQuestion) TableName() string {
	return "ai_question"
}
